package com.linwen.javase.annotation;


@Myannotation(name="default name",age=20,score=65)
public class Student {

	private String name;

	private int age;

	private int score;

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public double getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}

	@Deprecated
	public void say() {
		System.out.println(name+"  hello");
	}

	public void sayHello(){
		System.out.println("hello  everybody, my name is "+name);
	}

	@Override
	public String toString() {
		return "People [name=" + name + ", age=" + age + ", score=" + score + "]";
	}
	
}
